/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Logic;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;

/**
 *
 * @author David-PC
 */
public class Log implements Serializable{
    
    private Date date;
    private String user;
    private String server;
    private String action;
    private String details;
    public static final String CONNECTION = "Connection";
    public static final String NEW_CLASIFICATION = "New Classification";
    public static final String UPDATE_CLASIFICATION = "Update Classification";
    public static final String DELETE_CLASIFICATION = "Delete Classification";
    public static final String ASSIGN_PRIVILEGE = "Assign Privileges";
    public static final String DELETE_USER = "Delete User";
    public static final String NEW_USER = "New User";
    public static final String ASSIGN_CLASSIFICATION = "Assign Classification";
    public static final String UNASSIGN_CLASSIFICATION = "Unassign Classification";
    public static final String CREATE_RULE = "Create Rule";
    public static final String AUDIT = "Audition";
    public static final String ADD_SERVER = "New Server";
    public static final String EDIT_SERVER = "Edit Server";
    public static final String REMOVE_SERVER = "Remove Server";


    public Log(Date date,String user, String server, String action, String details) {
        this.date = date;
        this.user = user;
        
        if(server.equals(""))
            this.server = "LOCAL";
        else
            this.server = server;
        
        this.action = action;
        this.details = details;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }
    
    /**
     * @return the date
     */
    public Date getDate() {
        return date;
    }

    /**
     * @param date the date to set
     */
    public void setDate(Date date) {
        this.date = date;
    }

    /**
     * @return the server
     */
    public String getServer() {
        return server;
    }

    /**
     * @param server the server to set
     */
    public void setServer(String server) {
        this.server = server;
    }

    /**
     * @return the action
     */
    public String getAction() {
        return action;
    }

    /**
     * @param action the action to set
     */
    public void setAction(String action) {
        this.action = action;
    }

    /**
     * @return the details
     */
    public String getDetails() {
        return details;
    }

    /**
     * @param details the details to set
     */
    public void setDetails(String details) {
        this.details = details;
    }
    
    
}
